import df from '../../config/dataFormat'

export default {

    namespace: 'table',

    state: {
        user:{},
        // 导入xlsx文件state
        imp_fileName: '',
        imp_sheets: [],
        imp_sheetName: '',
        imp_cols: [],
        imp_data: [],
        imp_workbook: null,
        imp_file_tags: [],
        // 关联Tags state
        table_bd_tags: df.table_bd_tags,
        imp_table_data:[],
        data_op:'',
        // 格式化的数据
        foramt_data:[]
    },

    reducers: {
        save(state, action) {
            return { ...state, ...action.payload };
        },
    },
}